<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    // Session设置
    'session'               => [
        'id'             => '',
        // SESSION_ID的提交变量,解决flash上传跨域
        'var_session_id' => 'session_id',
        // SESSION 前缀
        'prefix'         => 'rophin',
        // 驱动方式 支持redis memcache memcached
        'type'           => '',
        'auto_start'     => true,
        'path' =>           '../runtime/sess/sess_index/',
        'expire' => 12*3600
    ],
    // 文件上传白名单
    'upload_file_mime'      => 'image/bmp,image/gif,image/jpeg,image/png,application/zip,application/rar,application/x-tar,application/x-gzip,application/octet-stream,application/msword,application/vnd.ms-excel,text/plain,application/xml,application/x-shockwave-flash,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', //允许上传的文件后缀

];
